package com.bba.manager.sku.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bba.manager.common.model.sku.VO.queryCar;
import com.bba.manager.common.util.ResponseVO;
import com.bba.manager.sku.service.IStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("store")
public class StoreController {
    @Autowired
    private IStoreService storeService;

    @GetMapping("/getList")
    public ResponseVO getList(queryCar queryCar){
        IPage carList = storeService.getCarList(queryCar);
        return ResponseVO.success(carList);
    }
}
